import request from "@/utils/request";
//添加购物车
export const addCart = ({skuId,count})=>{
    return request({
        url:'/member/cart',
        method:'post',
        data:{
            skuId,
            count
        }
    })
}
//获取购物车列表
export const getCartList = ()=>request('/member/cart')
//删除购物车商品
export const deleteCart = (ids)=>request({
    url:'/member/cart',
    method:'delete',
    data:{
        ids,
    }
})
//合并本地购物车
export const mergeCart = (data)=>request({
    url:'/member/cart/merge',
    method:'post',
    data
})
